package main.java;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import main.java.dtos.CAPA;
import main.java.dtos.POI;
import main.java.dtos.SERVICIO;

public class Storage {

	public static List<POI> listaPOI = new ArrayList<POI>();
	@SuppressWarnings("serial")
	public static List<CAPA> listaCAPA = new ArrayList<CAPA>() {
		{
			add(new CAPA(0, "Default Capa"));
		}
	};
	@SuppressWarnings("serial")
	public static List<SERVICIO> listSERVICIO = new ArrayList<SERVICIO>() {
		{
			add(new SERVICIO(0, "Default Servicio"));
		}
	};
	
	public static Map<Integer, List<Integer>> pois_en_capa = new HashMap<Integer, List<Integer>>();

	public static List<Integer> getCapasdelPOI(int id) {
		return pois_en_capa.get(id);
	}

	public static void asignarPOIaCapa(POI poi, CAPA capa) {
		List<Integer> poisList = new ArrayList<>();
		poisList.add(capa.getId());
		pois_en_capa.put(poi.getId(), poisList);		
	}

}
